<template>
  <div class="top">
    <div class="head">
      <img src="../../../public/img/33.jpg" class="img-top" />
      <div>
        <div class="head1" @click="denglu()">
          <span v-if="bool">xxx</span>
          <span v-else>点击展示微信头像</span>
        </div>
        <div class="head2">成长值0</div>
      </div>
    </div>
    <div class="member">
      <p class="iconfont icon-v">完美日记商城</p>
      <p @click="lianxi()">练习项目&gt;</p>
      <p>{{this.$store.getters.newtext}} </p>
    </div>
  </div>
</template>

<script>
export default {

  data() {
    return {
      bool: false
    }
  },
  methods: {
    denglu() {
      this.$router.push("./denglu");
    },
    lianxi(){
       this.$router.push("./lianxi");
    }
  },
};
</script>

<style scoped>
.top {
  background-image: linear-gradient(
    to bottom right,
    rgb(238, 223, 15) 20%,
    rgb(233, 109, 7) 50%,
    rgb(240, 50, 2) 100%
  );
  height: 1.15rem;
  padding-top: 0.35rem;
  width: 100%;
}
.head {
  width: 3rem;
  height: 0.5rem;
  display: flex;
  position: relative;
  margin-left: 0.15rem;
}
.img-top {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}
.head1 {
  color: white;
  font-size: 0.2rem;
}
.head2 {
  background-color: black;
  font-size: 0.14rem;
  border-radius: 0.1rem;
  width: 0.8rem;
  text-align: center;
  font-weight: 600;
  height: 0.25rem;
  line-height: 0.25rem;
  color: goldenrod;
}
.member {
  width: 315px;
  height: 60px;
  border-radius: 0.1rem;
  background-color: rgb(206, 166, 34);
  position: absolute;
  top: 1.2rem;
  margin: 0 0.3rem;
}
.member :nth-child(1) {
  position: absolute;
  left: 0.1rem;
  font-size: 0.14rem;
  color: rgb(78, 77, 77);
  font-weight: 600;
}
.member :nth-child(2) {
  position: absolute;
  right: 0.15rem;
  top: 0.2rem;
  background-color: rgb(252, 231, 205);
  width: 0.65rem;
  height: 0.2rem;
  line-height: 0.2rem;
  text-align: center;
  border-radius: 0.1rem;
}
.member :nth-child(3) {
  position: absolute;
  top: 0.25rem;
  bottom: 0.01rem;
  left: 0.1rem;
  font-weight: 800;
  font-size: 0.25rem;
  color: rgb(196, 196, 196);
}
</style>